#include <cmath>
#include <ctime>
namespace xege {
	double GaussianWeight (int x, int y, double sigama) {
			double sigama22 = 2 * sigama * sigama;
			return 1.0/(3.141592653 * sigama22) * pow(2.718281828, -(x*x + y*y) / sigama22);
	}
	template <typename T> T max (T a, T b) {
		if (a > b) return a;
		else       return b;
	}
	template <typename T> T min (T a, T b) {
		if (a > b) return b;
		else       return a;
	}
}  // 命名空间 xege 结束